Fix a typo in panel.js, and ensure that all variables used in
functions are scoped to the block (using let), to avoid polluting
the global namespace.
https://bugzilla.gnome.org/show_bug.cgi?id=643210
// This one is a straightforward mapping of the C method
containerClass.prototype.child_set = function(actor, props) {
let meta = this.get_child_meta(actor);
- for (prop in props)
+ for (let prop in props)
meta[prop] = props[prop];
};
let [minSize, naturalSize] = this._iconBox.get_preferred_height(forWidth);
alloc.min_size = minSize;
alloc.natural_size = naturalSize;
- [minSizfe, naturalSize] = this._label.actor.get_preferred_height(forWidth);
+ [minSize, naturalSize] = this._label.actor.get_preferred_height(forWidth);
if (minSize > alloc.min_size)
alloc.min_size = minSize;
if (naturalSize > alloc.natural_size)
this._indicatorY = 0; // only used when _animatingIndicator is true
this._stateCounts = {};
- for (key in ThumbnailState)
+ for (let key in ThumbnailState)
this._stateCounts[ThumbnailState[key]] = 0;
this._thumbnails = [];
this._stateUpdateQueued = false;
this._stateCounts = {};
- for (key in ThumbnailState)
+ for (let key in ThumbnailState)
this._stateCounts[ThumbnailState[key]] = 0;
// The "porthole" is the portion of the screen that we show in the workspaces